<template>
  <div class="diy-color flex">
    <el-input
      v-model.trim="data.value"
      type="text"
      placeholder="请输入"
    ></el-input>
    <el-color-picker v-model="data.value" color-format="rgb" />
  </div>
</template>

<script lang="ts" setup>
interface IProps {
  data: any;
}
defineProps<IProps>();
</script>

<style lang="scss" scoped>
.diy-color {
  .el-input {
    margin-right: 5px;
  }
}
</style>
